﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace ZGEDrySaltery.Web.s_user
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int USER_ID=(Convert.ToInt32(strid));
					ShowInfo(USER_ID);
				}
			}
		}
		
	private void ShowInfo(int USER_ID)
	{
		ZGEDrySaltery.BLL.s_user bll=new ZGEDrySaltery.BLL.s_user();
		ZGEDrySaltery.Model.s_user model=bll.GetModel(USER_ID);
		this.lblUSER_ID.Text=model.USER_ID.ToString();
		this.lblORG_ID.Text=model.ORG_ID.ToString();
		this.lblUSER_NAME.Text=model.USER_NAME;
		this.lblREAL_NAME.Text=model.REAL_NAME;
		this.lblSEX.Text=model.SEX;
		this.lblID_CARD.Text=model.ID_CARD;
		this.lblUSER_PSD.Text=model.USER_PSD;
		this.lblOPEN_ID.Text=model.OPEN_ID;
		this.lblTEL.Text=model.TEL;
		this.lblEMAIL.Text=model.EMAIL;
		this.lblIMAGE_PATH.Text=model.IMAGE_PATH;
		this.lblLAST_ONLINE_TIME.Text=model.LAST_ONLINE_TIME.ToString();
		this.lblLOGIN_TIMES.Text=model.LOGIN_TIMES.ToString();
		this.lblENABLE_FLAG.Text=model.ENABLE_FLAG;
		this.lblCREATE_USER_ID.Text=model.CREATE_USER_ID;
		this.lblCREATE_TIME.Text=model.CREATE_TIME.ToString();
		this.lblUPDATE_USER_ID.Text=model.UPDATE_USER_ID;
		this.lblUPDATE_TIME.Text=model.UPDATE_TIME.ToString();
		this.lblREMARK.Text=model.REMARK;
		this.lblTENANT_ID.Text=model.TENANT_ID.ToString();

	}


    }
}
